home *** CD-ROM | disk | FTP | other *** search
- Default Key Bindings for MicroEmacs 3.9 (09/06/89)
- =======================================
-
- ^A Move to start of line ESC A Apropos (list some commands)
- ^B Move backward by characters ESC B Backup by words
- ^C Insert space ESC C Initial capitalize word
- ^D Forward delete ESC D Delete forward word
- ^E Goto end of line ESC E Reset Encryption Key
- ^F Move forward by characters ESC F Advance by words
- ^G Abort out of things ESC G Go to a line
- ^H Backward delete
- ^I Insert tab/Set tab stops
- ^J Insert CR-LF, then indent ESC J Fill current paragraph
- ^K Kill forward ESC K Bind Key to function
- ^L Refresh the screen ESC L Lower case word
- ^M Insert CR-LF ESC M Add global mode
- ^N Move forward by lines ESC N Goto End paragraph
- ^O Open up a blank line
- ^P Move backward by lines ESC P Goto Begining of paragraph
- ^Q Insert literal ESC Q Fill current paragraph
- ^R Search backwards ESC R Search and replace
- ^S Search forward ESC S Suspend MicroEMACS (VMS&BSD only)
- ^T Transpose characters
- ^U Repeat command four times ESC U Upper case word
- ^V Move forward by pages ESC V Move backward by pages
- ^W Kill region ESC W Copy region to kill buffer
- ^Y Yank back from killbuffer ESC X Execute named command
- ^Z Move backward by pages ESC Z Save all buffers and exit
- ^@ Set mark
-
- ESC ^B Goto matching fence
- ESC ^C Count words in region ESC ~ Unmark current buffer
- ESC ^F Goto matching fence ESC ! Reposition window
- ESC ^H Delete backward word ESC < Move to start of buffer
- ESC ^K Unbind Key from function ESC > Move to end of buffer
- ESC ^L Reposition window ESC . Set mark
- ESC ^M Delete global mode ESC ? Fetch HELP file to buffer
- ESC ^N Rename current buffer ESC space Set mark
- ESC ^R Search & replace w/query ESC rubout Delete backward word
- ESC ^S Change screen rows rubout Backward delete
- ESC ^T Change screen columns
- ESC ^V Scroll next window down
- ESC ^W Delete Paragraph
- ESC ^Z Scroll next window up
-
- ^X ? Describe a key ^X ! Run 1 command in a subjob
- ^X = Show the cursor position ^X @ Pipe DOS command to buffer
- ^X ^ Enlarge display window ^X # Filter buffer thru DOS filter
- ^X 0 Delete current window ^X $ Run 1 command in a subjob
- ^X 1 Delete other windows ^X space Remove mark
- ^X 2 Split current window
- ^X 4 Find file into another window
- ^X ( Begin macro ^X < Narrow buffer to region
- ^X ) End macro ^X > Widen buffer
-
- ^X A Set variable value
- ^X ^B Display buffer list ^X B Switch a window to a buffer
- ^X ^C Exit MicroEMACS ^X C Start a new command processer
- ^X ^D Detab a line ^X D Suspend MicroEMACS (BSD4.2 only)
- ^X ^E Entab a line ^X E Execute macro
- ^X ^F Find file ^X F Set fill column
- ^X G Display a variable
- ^X ^I Insert file
- ^X K Delete buffer
- ^X ^L Lower case region
- ^X ^M Delete Mode ^X M Add a mode
- ^X ^N Move window down ^X N Rename current filename
- ^X ^O Delete blank lines ^X O Move to the next window
- ^X ^P Move window up ^X P Move to the previous window
- ^X ^R Get a file from disk ^X R Incremental reverse search
- ^X ^S Save current file ^X S Incremental forward search
- ^X ^T Trim whitespace on a line
- ^X ^U Upper case region
- ^X ^V View file
- ^X ^W Write a file to disk ^X W resize Window
- ^X ^X Swap "." and mark ^X X Use next buffer
- ^X ^Z Shrink window ^X Z Enlarge display window
-
- Only under PCDOS:
- <ALT>-S Hunt forward SHIFT <F1> - <F10>
- <ALT>-R Hunt backward Execute macroes 1 - 10
-
- Some unbound commands:
- ======================
- append-and-kill-region kill region and append it to the kill buffer
- append-and-copy-region append region to kill buffer
- case-region-change change the case in a region
- clear-mark clear the mark
- character-to-octal-insert insert a C octal escape sequence for next key pressed
- describe-bindings pull the list of current bindings into a window
- describe-functions pull the list of function names into a window
- describe-variables pull the list of variables into a window
- execute-buffer execute a buffer of command lines
- execute-command-line execute a command line (n <command> <args>)
- execute-file execute a file of command lines
- execute-named-command execute a command by name (w/command completion)
- execute-macro-[1-40] execute macroes 1 thru 40
- hunt-forward find next occurance of search string
- hunt-backward find last occurance of search string
- revert-file replaces the current file with the last saved version
- string-length show length of string
- write-region write the region to a file
-
- Usable Modes
- ============
- WRAP Lines going past right margin "wrap" to a new line
- CMODE Change behavior of some commands to work with C better
- EXACT Exact case matching on search strings
- VIEW Read-Only mode where no modifications are allowed
- OVER Overwrite typed characters instead of inserting them
- MAGIC Use regular expresion matching in searches
- CRYPT Current buffer will be encrypted on write, decrypted on read
- ASAVE Automatically write file after $asave changes
- BINARY Read and write binary files under MSDOS
-
- WHITE/CYAN/MAGENTA/YELLOW/BLUE/RED/GREEN/BLACK Sets foreground color
- white/cyan/magenta/yellow/blue/red/green/black Sets background color
-
- MAGIC MODE special characters
- =============================
- ^ Anchor search at beginning of line
- $ Anchor search at end of line
- . Match any character except <NL>
- * Match zero or more of the preceeding character
- [] Match a class of characters ([a-z] would be all alphabetics)
- \ Take next literally
- & Matched pattern (replacement string only)
-
- System Environment Variables (precede with $)
- =============================================
- fillcol current fill column
- pagelen number of lines used by editor
- curcol current column pos of cursor
- curline current line in file
- ram ram in use by malloc
- flicker flicker supression
- curwidth current screen width
- cbufname current buffer name
- cfname current file name
- sres current screen resolution
- debug macro debugging
- status returns the status of the last command
- palette current palette string
- asave # of chars between auto-saves
- acount # of chars until next auto-save
- lastkey last keyboard char struck
- curchar current character under the cursor
- discmd display commands on command line
- version current version number
- progname returns current prog name - "MicroEMACS"
- seed current random number seed
- disinp display command line input characters
- wline # of lines in current window
- cwline current screen line in window
- target target for line moves
- search search pattern
- replace replacement pattern
- match last matched magic pattern
- kill kill buffer (read only)
- cmode mode of current buffer
- gmode global modes
- tpause length to pause for paren matching
- pending type ahead pending flag
- lwidth width of current line
- line text of current line
- advance EDT emulation advance/backup flag
- vt100key when set, the next character after an escape is always read
- hardtab the amount that a TAB character should move
- softtab the size for the insert-tab command
- hscroll horizontal scrolling
- hjump number of spaces to jump during a horizontal scroll
- cbflags flags for the current buffer (invis, changed, trunc, narrow)
-
- Macro Fumctions (precede with &)
- ================================
- add add two numbers together
- sub subtraction
- tim multiplication
- div division
- mod mod
- neg negate
- cat concatinate string
- lef left string(string, len)
- rig right string(string, pos)
- mid mid string(string, pos, len)
- not logical not
- equ logical equality check
- les logical less than
- gre logical greater than
- seq string logical equality check
- sle string logical less than
- sgr string logical greater than
- ind evaluate indirect value
- and logical and
- or logical or
- len string length
- upp uppercase string
- low lower case string
- tru Truth of the universe logical test
- asc char to integer conversion
- chr integer to char conversion
- gtk 1 charater
- rnd get a random number
- abs absolute value of a number
- sin find the index of one string in another
- env retrieve a system environment var
- bin lookup what function name is bound to a key
- gtc get a command
- ban binary and
- bor binary or
- bxo binary xor
- bno binary not
-
- Command line options
- ====================
- -c clears VIEW mode
- -g<#> goto line number <#>
- -i<var> <value> initialize variable <var> to value <value>
- -k<key> set encryption key to <key>
- -r set restricted flag
- -s<pat> goto first occurence of pattern <pat>
- -v set VIEW mode
-
-